/**
 * Package domain
 */
package teamrocket.domain; // $codepro.audit.disable packagePrefixNamingConvention

import java.util.logging.Level;

import teamrocket.logging.TLogger;

/**
 * Represents a prescription in the database
 * @author Stephen
 *
 */
import java.io.Serializable;

/**
 * Prescription contains a drug name and a set of instructions.
 * @author James Zhang, Juan Llanes, Stephen Tapper, Will Barr
 * @version 1.0
 */
public class Prescription implements Serializable{
	
	/**
	 *  
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * Field drugName.
	 */
	private String drugName;
	
	/**
	 * Field instructions.
	 */
	private String instructions;
	
	/**
	 * Constructs a prescription object in memory
	 * @param drugName
	 * @param instructions
	 */
	public Prescription(String drugName, String instructions) {
		this.drugName = drugName;
		this.instructions = instructions;
		TLogger.getInstance().getLogger().log(Level.INFO,
				"Creating new Prescription.");
	}
	
	/**
	 * Method getDrugName.
	 * @return String
	 */
	public String getDrugName() {
		return drugName;
	}
	
	/**
	 * Method setDrugName.
	 * @param drugName String
	 */
	public void setDrugName(String drugName) {
		this.drugName = drugName;
	}
	
	/**
	 * Method getInstructions.
	 * @return String
	 */
	public String getInstructions() {
		return instructions;
	}
	
	/**
	 * Method setInstructions.
	 * @param instructions String
	 */
	public void setInstructions(String instructions) {
		this.instructions = instructions;
	}
	
	@Override // $codepro.audit.disable methodJavadoc
	public String toString() {
		return drugName;
	}
}
